package com.stark.wechat.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stark.wechat.service.impl.EhcacheServiceImpl;

/**
 * 清空 Ehcache 缓存作业。
 * @author Ben
 * @since 1.0.0
 * @version 1.0.1, 2017/9/22
 */
@Component("clearEhcacheJob")
public class ClearEhcacheJob {
	@Autowired
	private EhcacheServiceImpl ehcacheService;
	
	public void execute() {
		this.ehcacheService.clear("publicCache");
	}
}
